package com.shuangti.storage.mapper;

import com.shuangti.storage.bean.StorageTbl;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;


@Mapper
public interface StorageTblMapper {
    int deleteByPrimaryKey(Long product_id);

    int insert(StorageTbl record);

    int insertSelective(StorageTbl record);

    StorageTbl selectByPrimaryKey(Long product_id);

    int updateByPrimaryKeySelective(StorageTbl record);

    int updateByPrimaryKey(StorageTbl record);

    void deduct(Long product_id, Integer stock);

    BigDecimal selectPriceById(Long product_id);
}
